#include "Person.h"

using namespace std;
using namespace cv;

Person::Person(int i){id = i;}
Person::Person(){id = 0;}
Person::~Person(){}

/*Get values*/
int Person::getId(){return id;}

float Person::getDistance(){return distance;}
float Person::getSpeed(){return speed;}
float Person::getHandHeadRatio(){return handHeadRatio;}
int Person::getPose(){return pose;}
int Person::getCentreX(){return centreX;}
int Person::getCentreY(){return centreY;}
int Person::getMaxX(){return maxX;}
int Person::getMinX(){return minX;}
int Person::getMaxY(){return maxY;}
int Person::getMinY(){return minY;}
string Person::getGesture(){return gesture;}
Point3i Person::getHandPos(){return handPos;}
Point3i Person::getCentrePos(){return centrePos;}

/*Set values*/
void Person::setDistance(float d){distance = d;}
void Person::setSpeed(float s){speed = s;}
void Person::setHandHeadRatio(float r){handHeadRatio = r;}
void Person::setPose(int p){pose = p;}
void Person::setCentre(int x, int y){centreX = x;centreY = y;}
void Person::setMaxX(int x){maxX = x;}
void Person::setMinX(int x){minX = x;}
void Person::setMaxY(int y){maxY = y;}
void Person::setMinY(int y){minY = y;}
void Person::setGesture(string s){gesture = s;};
void Person::setHandPos(int xPos, int yPos, int zPos){handPos.x = xPos;handPos.y = yPos;handPos.z=zPos;}
void Person::setCentrePos(int xPos, int yPos, int zPos){centrePos.x = xPos;centrePos.y = yPos;centrePos.z=zPos;}

/*Print person*/
void Person::print(){
    std::cout << "Person centre: " << centreX << " , " << centreY << std::endl;
    std::cout << "Min and max X: " << minX << " , " << maxX << std::endl;
    std::cout << "Min and max Y: " << minY << " , "<< maxY << std::endl;

}

